package ee.maoinvest.frontend.controller.command.enterpriserelationswithelectricitymetersandcontractscommands;

import ee.maoinvest.frontend.controller.command.Command;

public class EnterpriseRelationsWithElectricityMetersAndContractsCommandFactory
{
	
	public Command getCommand(String triggeringEvent)
	{
		if (triggeringEvent.equals("manageEnterprisesRelationsWithElectricityMetersAndContractsPage"))
		{
			return new FillEnterpriseRelationsWithElectricityMetersAndContractsFormConverterWithInitialDataCommand();
		}
		
		if (triggeringEvent.equals("removeEnterpriseContractWithElectricityMeterCommandFormPostEvent"))
		{
			return new RemoveEnterpriseContractWithElectricityMeterCommand();
		}
		
		if (triggeringEvent.equals("insertNewContractBetweenEnterpriseAndElectricityMeterPage"))
		{
			return new FillInsertNewContractBetweenEnterpriseAndElectricityMeterFormConverterWithInitialDataCommand();
		}
		
		
		if (triggeringEvent.equals("insertNewContractBetweenEnterpriseAndElectricityMeterFormPostEvent"))
		{
			return new InsertNewContractBetweenEnterpriseAndElectricityMeterCommand();
		}
		
		if (triggeringEvent.equals("manageElectricityContractRelationsWithElectricityMetersAndEnterprisesPage"))
		{
			return new FillElectricityContractRelationsWithElectricityMeterAndEnterprisesFormConverterWithInitialDataCommand();
		}
		
		if (triggeringEvent.equals("removeElectricityContractRelationsWithElectricityMetersAndEnterprisesFormPostEvent"))
		{
			return new RemoveContractRelationWithElectricityMeterAndEnterpriseCommand();
		}
		
		return null;
	}
}
